package com.jianggujin.redis.config;

import java.io.Serializable;

import lombok.Data;

@Data
public class ConnectionConfig implements Serializable {
    private String name;
    private String host;
    private int port = 6379;
    private String auth;
    private String keysGlobStylePattern = "*";
    private char namespaceSeparator = ':';
    private int connectionTimeout = 60;
    private int soTimeout = 60;

    public String getAddress() {
        return host + ":" + port;
    }

    @Override
    public String toString() {
        return this.name;
    }
}